<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initAutoloader(){
		$modelLoader = new Zend_Application_Module_Autoloader(array(
						'namespace' => '',
						'basePath'  => APPLICATION_PATH
						));
		$autoloader = Zend_Loader_Autoloader::getInstance();	
		$autoloader->registerNamespace(array('CLib_'));
						
		return $modelLoader;			
	}
/*	
	protected function _initDb()
	{		 		  
		//Zend_Registry::set('config', new Zend_Config_Ini(APPLICATION_PATH . '\configs\application.ini', 'production'));
		$resource = $this->getPluginResource('db');
		Zend_Registry::set('db', $resource->getDbAdapter());		  
	}
	*/
	protected function _initViweHelpers()
	{		
		$this->bootstrap('layout');
		$layout = $this->getResource('layout');
		$view = $layout->getView();
		
		$view->doctype('XHTML1_STRICT');
		$view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
		$view->headTitle()->setSeparator(' :: ');
		$view->headTitle('Cartriges');		
	}
	

}

